package com.share.design.bridge;

/**
 * author:caifan
 * date:2020/2/4
 */
public class DriverClient {
    public static void main(String[] args) {
        AbstractBridge driverBridge = new DriverBridge();
        Driver oracleDriver = new OracleDriver();
        driverBridge.setDriver(oracleDriver);
        driverBridge.operate();

        Driver mysqlDriver = new MysqlDriver();
        driverBridge.setDriver(mysqlDriver);
        driverBridge.operate();

    }
}
